import request from '../index';
// 获取博客列表
export const getBlog = (params) =>{
    return request({
        url:'/api/blog',
        method:'get',
        params
    })
}
// 新增博客
export const addBlog = (params) => {
    return request({
        url: '/api/blog',
        method: 'post',
        data: params
    })
}
// 获取分类列表
export const getCate = (params) =>{
    return request({
        url:'/api/class',
        method:'get',
        params
    })
}